import scrapy

from commonresources.spider_items.base_item import BaseItem


class ZheJiangZhengFuCaiGouWangItem(BaseItem):
    """浙江政府采购网 Item"""
    project_area = scrapy.Field()
    # origin_url = scrapy.Field()  # 原始地址
    # html = scrapy.Field()  # 公告html源码
    # create_time = scrapy.Field()  # 创建时间
    # update_time = scrapy.Field()  # 跟新时间
    # announcement_title = scrapy.Field()  # 公告标题
    # announcement_type = scrapy.Field()  # 公告类型
    # release_time = scrapy.Field()  # 公告发布时间
    # is_parsed = scrapy.Field()  # 是否已经提取过信息
    # source_type = scrapy.Field()  # 属于哪个网站的信息
    # province = scrapy.Field()  # 所属省份
    # city = scrapy.Field()  # 所属城市
    # project_type = scrapy.Field()  # 工程类型 ，比如：勘测设计，园林设计，工程监理，房屋建筑施工等


class ZheJiangShengGongGongZiYuanJiaoYiPingTaiItem(BaseItem):
    """ 浙江省公共资源交易平台 Item """
    project_area = scrapy.Field()
    is_pdf = scrapy.Field()
    pdf_content = scrapy.Field()
    pdf_url = scrapy.Field()


class ZheJiangShengShuiLiTingItem(BaseItem):
    """浙江省水利厅 Item"""
    project_area = scrapy.Field()
    # origin_url = scrapy.Field()  # 原始地址
    # html = scrapy.Field()  # 公告html源码
    # create_time = scrapy.Field()  # 创建时间
    # update_time = scrapy.Field()  # 跟新时间
    # announcement_title = scrapy.Field()  # 公告标题
    # announcement_type = scrapy.Field()  # 公告类型
    # release_time = scrapy.Field()  # 公告发布时间
    # is_parsed = scrapy.Field()  # 是否已经提取过信息
    # source_type = scrapy.Field()  # 属于哪个网站的信息
    # province = scrapy.Field()  # 所属省份
    # city = scrapy.Field()  # 所属城市
    # project_type = scrapy.Field()  # 工程类型 ，比如：勘测设计，园林设计，工程监理，房屋建筑施工等